package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.AnswerRecord;

/**
 * 答题记录表Service接口
 * 
 * @author admin
 * @date 2024-03-08
 */
public interface IAnswerRecordService 
{
    /**
     * 查询答题记录表
     * 
     * @param recordId 答题记录表主键
     * @return 答题记录表
     */
    public AnswerRecord selectAnswerRecordByRecordId(Long recordId);

    /**
     * 查询答题记录表列表
     * 
     * @param answerRecord 答题记录表
     * @return 答题记录表集合
     */
    public List<AnswerRecord> selectAnswerRecordList(AnswerRecord answerRecord);

    /**
     * 新增答题记录表
     * 
     * @param answerRecord 答题记录表
     * @return 结果
     */
    public int insertAnswerRecord(List<AnswerRecord> answerRecordList, SysUser user);

    /**
     * 修改答题记录表
     * 
     * @param answerRecord 答题记录表
     * @return 结果
     */
    public int updateAnswerRecord(AnswerRecord answerRecord);

    /**
     * 批量删除答题记录表
     * 
     * @param recordIds 需要删除的答题记录表主键集合
     * @return 结果
     */
    public int deleteAnswerRecordByRecordIds(String recordIds);

    /**
     * 删除答题记录表信息
     * 
     * @param recordId 答题记录表主键
     * @return 结果
     */
    public int deleteAnswerRecordByRecordId(Long recordId);
}
